package com.fanco.learn_datastruct_leetcode.designpattern.adapter.classadapter;

/**
 * @author qiaowang 2022/2/10
 * 描述
 */
public class Phone {
    public void charging (IVoltage5V iVoltage5V) {
        if (iVoltage5V.output5V() == 5) {
            System.out.println("电压为5v可以充电");
        }
    }
}
